package com.dg.cuckoo.admin.repository;

import com.dg.cuckoo.admin.dto.projectInfo.ProjectImageDto;
import com.dg.cuckoo.core.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectImageRepository extends BaseRepository<ProjectImageDto,String> {

    @Query(value = "select * from project_image where project_id=?  limit ?,?",nativeQuery = true)
    List<ProjectImageDto> page(String projectId,Integer page, Integer pageSize);

}
